//
//  ViewController.h
//  SingleViewCoreData
//
//  Created by Administrator on 5/27/13.
//  Copyright (c) 2013 Administrator. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <CoreData/CoreData.h>
#import "SecureUserInformation.h"
#import "NSManagedObject+MySecureUserInformation.h"


@interface ViewController : UIViewController

@property (strong, nonatomic) NSFetchedResultsController *fetchedResultsController;
@property (strong, nonatomic) NSManagedObjectContext *managedObjectContext;
@property (weak, nonatomic) IBOutlet UITextField *txtFieldUserName;
@property (strong, nonatomic) IBOutlet UITextField *txtFieldEmail;
@property (strong, nonatomic) IBOutlet UITextField *txtFieldPassword;

- (IBAction)btnRegister:(id)sender;

- (IBAction)btnLogIn:(id)sender;
- (BOOL) addUser: (NSString*) username password: (NSString*) password email: (NSString*) email;
- (SecureUserInformation*) loginUser: (NSString*) username withPassword:(NSString*) password;

@end
